
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>API测试报告</title>
    <style>
        body { font-family: 'Microsoft YaHei', Arial, sans-serif; margin: 20px; background-color: #f5f5f5; }
        .container { max-width: 1200px; margin: 0 auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .header { text-align: center; margin-bottom: 30px; }
        .summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .summary-card { background: #f8f9fa; padding: 20px; border-radius: 8px; text-align: center; }
        .summary-card h3 { margin: 0 0 10px 0; color: #333; }
        .summary-card .value { font-size: 2em; font-weight: bold; color: #007bff; }
        .results { margin-top: 30px; }
        .result-item { margin-bottom: 20px; padding: 15px; border-radius: 8px; border-left: 4px solid #ddd; }
        .result-item.success { background: #d4edda; border-left-color: #28a745; }
        .result-item.failure { background: #f8d7da; border-left-color: #dc3545; }
        .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .result-title { font-weight: bold; font-size: 1.1em; }
        .result-duration { color: #666; font-size: 0.9em; }
        .result-error { background: #fff; padding: 10px; border-radius: 4px; font-family: monospace; font-size: 0.9em; color: #dc3545; margin-top: 10px; }
        .timestamp { text-align: center; color: #666; margin-top: 30px; font-size: 0.9em; }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>API测试报告</h1>
            <p>生成时间: 2025-08-13T21:36:32.362479</p>
        </div>
        
        <div class="summary">
            <div class="summary-card">
                <h3>总测试数</h3>
                <div class="value">4</div>
            </div>
            <div class="summary-card">
                <h3>成功数</h3>
                <div class="value" style="color: #28a745;">0</div>
            </div>
            <div class="summary-card">
                <h3>失败数</h3>
                <div class="value" style="color: #dc3545;">4</div>
            </div>
            <div class="summary-card">
                <h3>成功率</h3>
                <div class="value" style="color: #dc3545;">0.0%</div>
            </div>
            <div class="summary-card">
                <h3>总耗时</h3>
                <div class="value">29.5s</div>
            </div>
        </div>
        
        <div class="results">
            <h2>详细结果</h2>

            <div class="result-item failure">
                <div class="result-header">
                    <div class="result-title">[FAIL] 认证API测试</div>
                    <div class="result-duration">耗时: 16.59秒</div>
                </div>
</div>

            <div class="result-item failure">
                <div class="result-header">
                    <div class="result-title">[FAIL] 189云盘分享API测试</div>
                    <div class="result-duration">耗时: 4.33秒</div>
                </div>

                <div class="result-error">
                    错误信息: Traceback (most recent call last):
  File "F:\WorkSpaces\PySpace\snail_clouds_test\backend\test\api\test_share189_api.py", line 415, in <module>
    exit(main())
         ~~~~^^
  File "F:\WorkSpaces\PySpace\snail_clouds_test\backend\test\api\test_share189_api.py", line 403, in main
    success = tester.run_all_tests()
  File "F:\WorkSpaces\PySpace\snail_clouds_test\backend\test\api\test_share189_api.py", line 364, in run_all_tests
    print("\u274c 登录失败，无法进行后续测试")
    ~~~~~^^^^^^^^^^^^^^^^^^^^^...
                </div>
</div>

            <div class="result-item failure">
                <div class="result-header">
                    <div class="result-title">[FAIL] 用户管理API测试</div>
                    <div class="result-duration">耗时: 4.28秒</div>
                </div>
</div>

            <div class="result-item failure">
                <div class="result-header">
                    <div class="result-title">[FAIL] 虚拟网盘API测试</div>
                    <div class="result-duration">耗时: 4.30秒</div>
                </div>
</div>

        </div>
        
        <div class="timestamp">
            <p>报告生成于: 2025-08-13 21:37:01</p>
        </div>
    </div>
</body>
</html>
